<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      table {
        border: 1px solid black;
        border-collapse: collapse;
      }
      tr,
      td,
      th {
        width: 150px;
        height: 30px;
        border: 1px solid black;
        margin: 0;
        padding: 0;
        text-align: center;
      }
      th{
          background-color: blue;
          color: white;
      }
    </style>
  </head>
  <body>
    <table id="data">
      <thead>
        <tr>
          <th>姓名</th>
          <th>工资</th>
          <th>入职时间</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Smith</td>
          <td>$3100</td>
          <td>2014-01-01</td>
          <td><a href="javascript::">删除</a></td>
        </tr>
        <tr>
          <td>Smith</td>
          <td>$3100</td>
          <td>2014-01-01</td>
          <td><a href="javascript::">删除</a></td>
        </tr>
        <tr>
          <td>Smith</td>
          <td>$3100</td>
          <td>2014-01-01</td>
          <td><a href="javascript::">删除</a></td>
        </tr>
        <tr>
          <td>Smith</td>
          <td>$3100</td>
          <td>2014-01-01</td>
          <td><a href="javascript::">删除</a></td>
        </tr>
        <tr>
          <td>Smith</td>
          <td>$3100</td>
          <td>2014-01-01</td>
          <td><a href="javascript::">删除</a></td>
        </tr>
        <tr>
            <td>Smith</td>
            <td>$3100</td>
            <td>2014-01-01</td>
            <td><a href="javascript::">删除</a></td>
          </tr>
      </tbody>
    </table>
    <script src="js/jquery-3.5.1.min.js"></script>
    <script>
        $('#data>tbody>tr:odd').css('background','#ccccff')
    </script>
  </body>
</html>
